/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sputty.classes;

/**
 *
 * @author mauro
 */
public class ConnectionSettings {
    
    private String Name;
    private String Host;
    private int Port;
    private String Protocol;
    private String UserName;
    private String Password;
    private int ConnectionTimeOut;
    private int LoginTimeOut;
    private int PasswordTimeOut;
    private int CommandTimeOut;
    private String[] Commands;
    private boolean LoginMacro;
    private boolean PostCommands;
    private int EndLineChar;
    
    public ConnectionSettings(){
        Name = "";
        Host = "";
        Port = 22;
        Protocol = "SSH";
        UserName = "";
        Password = "";
        ConnectionTimeOut = 1000;
        LoginTimeOut = 1000;
        PasswordTimeOut = 1000;
        CommandTimeOut = 1000;
        Commands = new String[5];
        LoginMacro = false;
        PostCommands = false;
        EndLineChar = 10;
    }
    
    public void setName(String Name){
        this.Name = Name;
    }
    
    public String getName(){
        return this.Name;
    }
    
    public void setHost(String Host){
        this.Host = Host;
    }
    
    public String getHost(){
        return this.Host;
    }
    
    public void setPort(int Port){
        this.Port = Port;
    }
    
    public int getPort(){
        return this.Port;
    }
    
    public void setProtocol(String Protocol){
        this.Protocol = Protocol;
    }
    
    public String getProtocol(){
        return this.Protocol;
    }
    
    public void setUserName(String UserName){
        this.UserName = UserName;
    }
    
    public String getUserName(){
        return this.UserName;
    }
    
    public void setPassword(String Password){
        this.Password = Password;
    }
    
    public String getPassword(){
        return this.Password;
    }
    
    public void setConnectionTimeout(int ConnectionTimeout){
        this.ConnectionTimeOut = ConnectionTimeout;
    }
    
    public int getConnectionTimeout(){
        return this.ConnectionTimeOut;
    }
    
    public void setLoginTimeOut(int LoginTimeOut){
        this.LoginTimeOut = LoginTimeOut;
    }
    
    public int getLoginTimeOut(){
        return this.LoginTimeOut;
    }
    
    public void setPasswordTimeOut(int PasswordTimeOut){
        this.PasswordTimeOut = PasswordTimeOut;
    }
    
    public int getPasswordTimeOut(){
        return this.PasswordTimeOut;
    }
    
    public void setCommandTimeOut(int CommandTimeOut){
        this.CommandTimeOut = CommandTimeOut;
    }
    
    public int getCommandTimeOut(){
        return this.CommandTimeOut;
    }
    
    public void setCommands(String[] Commands){
        this.Commands = Commands;
    }
    
    public String[] getCommands(){
        return this.Commands;
    }
    
    public void setLoginMacro(boolean LoginMacro){
        this.LoginMacro = LoginMacro;
    }
    
    public boolean getLoginMacro(){
        return this.LoginMacro;
    }
    
    public void setPostCommands(boolean PostCommands){
        this.PostCommands = PostCommands;
    }
    
    public boolean getPostCommands(){
        return this.PostCommands;
    }
    
    public void setEndLineChar(int EndLineChar){
        this.EndLineChar = EndLineChar;
    }
    
    public int getEndLineChar(){
        return this.EndLineChar;
    }
}
